package cn.com.connext.scrm.domain.master;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.ZonedDateTime;

/**
 * Created by YANG205 on 2018/6/27.
 */
@Entity
@Table(name = "circle_fans")   // 定义数据库表名
public class CircleFans {
    private static final long serialVersionUID = 1L;

    @Id
    private String id;

    @Column(name = "circle_id", nullable = false)
    private String circleId;

    @Column(name = "user_id", nullable = false)
    private String userId;

    @Column(name = "create_time", nullable = false)
    private ZonedDateTime createTime;

    @Column(name = "created_index", nullable = false)
    private Integer createdIndex;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCircleId() {
        return circleId;
    }

    public void setCircleId(String circleId) {
        this.circleId = circleId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public ZonedDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(ZonedDateTime createTime) {
        this.createTime = createTime;
    }

    public Integer getCreatedIndex() {
        return createdIndex;
    }

    public void setCreatedIndex(Integer createdIndex) {
        this.createdIndex = createdIndex;
    }
}
